#include <iostream>


#include "Timer.h"

int main()
{

    Timer timer;
    std::cout << "A sample test for Timer."<<std::endl;
    std::cout << "call time::begin()"<<std::endl;
    timer.begin();
    for(int i=0;i<10;i++)
    {
         std::cout << "time = "<<Timer::getTime()<<"ms" << std::endl;
         Timer::sleep(1000);//ms,sleep is not so accurate
    }
    std::cout << "call time::end(),elapsed time = "<<timer.end()<<"ms"<<std::endl;
    return 0;
}
